Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lang] [metal] Support dynamic indexing in metal #6985

Merged
merged 2 commits into from
Dec 27, 2022

Conversation

strongoier
Copy link
Contributor

@strongoier strongoier commented Dec 26, 2022

Issue: #2590

Brief Summary

  1. Dynamic indexing in metal is supported by mimicking the implementation of that in LLVM backends.
  2. ret_type change of ArgLoadStmt is moved out of the ScalarizePointers pass, which is designed to scalarize alloca and will be removed once dynamic indexing becomes default.
  3. Configs of dynamic indexing tests are fixed.

@strongoier strongoier added the full-ci Run complete set of CI tests label Dec 26, 2022
@netlify
Copy link

netlify bot commented Dec 26, 2022

Deploy Preview for docsite-preview canceled.

Name Link
🔨 Latest commit 8980aca
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/63a9739788eb5f0008b425b2

@strongoier strongoier requested review from jim19930609, ailzhang and k-ye and removed request for jim19930609 and ailzhang December 26, 2022 11:27
Copy link
Member

@k-ye k-ye left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

@strongoier strongoier merged commit 3823e5d into taichi-dev:master Dec 27, 2022
@strongoier strongoier deleted the support-dyn-idx-metal branch December 27, 2022 06:36
strongoier added a commit that referenced this pull request Dec 30, 2022
Issue: #2590

### Brief Summary

This PR supports dynamic indexing in spirv (sister PR: #6985).
`_test_local_matrix_non_constant_index()` is modified due to lack of
`AssertStmt` support in spirv.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
feisuzhu pushed a commit to feisuzhu/taichi that referenced this pull request Jan 5, 2023
Issue: taichi-dev#2590

### Brief Summary

This PR supports dynamic indexing in spirv (sister PR: taichi-dev#6985).
`_test_local_matrix_non_constant_index()` is modified due to lack of
`AssertStmt` support in spirv.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
Issue: taichi-dev#2590

### Brief Summary

1. Dynamic indexing in metal is supported by mimicking the
implementation of that in LLVM backends.
2. `ret_type` change of `ArgLoadStmt` is moved out of the
`ScalarizePointers` pass, which is designed to scalarize `alloca` and
will be removed once dynamic indexing becomes default.
3. Configs of dynamic indexing tests are fixed.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
quadpixels pushed a commit to quadpixels/taichi that referenced this pull request May 13, 2023
Issue: taichi-dev#2590

### Brief Summary

This PR supports dynamic indexing in spirv (sister PR: taichi-dev#6985).
`_test_local_matrix_non_constant_index()` is modified due to lack of
`AssertStmt` support in spirv.

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
full-ci Run complete set of CI tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants